const express = require("express");

const app = express();

const base_url = "/v2ex_pwa/";
app.use(base_url, express.static("./dist"));

const port = 9999;
module.exports = app.listen(port, function(err) {
  if (err) {
    console.log(err);
    return;
  }
  console.log(`Listening at http://localhost:${port}${base_url}`);
});
